package com.blockmeta.bbs.businesslibrary.pojo.websocket;

/**
 * Created by bytom on 2018/4/3.
 */

public enum CompressMethod {
    NONE(0),
    GZIP(1);

    public int m_nValue;

    private CompressMethod(int nValue) {
        this.m_nValue = nValue;
    }

    public static CompressMethod getMethod(int nValue) {
        CompressMethod[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            CompressMethod m = var1[var3];
            if(m.m_nValue == nValue) {
                return m;
            }
        }

        return null;
    }

    public int getValue() {
        return this.m_nValue;
    }
}
